package com.ruoyi.bussiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bussiness.mapper.SftReputationAssessmentMapper;
import com.ruoyi.bussiness.domain.SftReputationAssessment;
import com.ruoyi.bussiness.service.ISftReputationAssessmentService;
import com.ruoyi.common.core.text.Convert;

/**
 * 信誉考核Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
@Service
public class SftReputationAssessmentServiceImpl implements ISftReputationAssessmentService 
{
    @Autowired
    private SftReputationAssessmentMapper sftReputationAssessmentMapper;

    /**
     * 查询信誉考核
     * 
     * @param id 信誉考核主键
     * @return 信誉考核
     */
    @Override
    public SftReputationAssessment selectSftReputationAssessmentById(Long id)
    {
        return sftReputationAssessmentMapper.selectSftReputationAssessmentById(id);
    }

    /**
     * 查询信誉考核列表
     * 
     * @param sftReputationAssessment 信誉考核
     * @return 信誉考核
     */
    @Override
    public List<SftReputationAssessment> selectSftReputationAssessmentList(SftReputationAssessment sftReputationAssessment)
    {
        return sftReputationAssessmentMapper.selectSftReputationAssessmentList(sftReputationAssessment);
    }

    /**
     * 新增信誉考核
     * 
     * @param sftReputationAssessment 信誉考核
     * @return 结果
     */
    @Override
    public int insertSftReputationAssessment(SftReputationAssessment sftReputationAssessment)
    {
        return sftReputationAssessmentMapper.insertSftReputationAssessment(sftReputationAssessment);
    }

    /**
     * 修改信誉考核
     * 
     * @param sftReputationAssessment 信誉考核
     * @return 结果
     */
    @Override
    public int updateSftReputationAssessment(SftReputationAssessment sftReputationAssessment)
    {
        return sftReputationAssessmentMapper.updateSftReputationAssessment(sftReputationAssessment);
    }

    /**
     * 批量删除信誉考核
     * 
     * @param ids 需要删除的信誉考核主键
     * @return 结果
     */
    @Override
    public int deleteSftReputationAssessmentByIds(String ids)
    {
        return sftReputationAssessmentMapper.deleteSftReputationAssessmentByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除信誉考核信息
     * 
     * @param id 信誉考核主键
     * @return 结果
     */
    @Override
    public int deleteSftReputationAssessmentById(Long id)
    {
        return sftReputationAssessmentMapper.deleteSftReputationAssessmentById(id);
    }
}
